<!DOCTYPE html>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">  -->
<html>
<head>
{include file='header.tpl' JS=$smarty.const.BAOGG_JS CSS=$smarty.const.BAOGG_CSS}        
        <script  type="text/javascript">        
        Ext.onReady(function(){
            var fn_submit= function(){  
                Ext.Ajax.request({
		            form: 'form1',		            
		            success: function(o){
		            	var response=Ext.decode(o.responseText);
		            	if(response.success){
			            	window.location.href="{$smarty.const.BAOGG_BASE_URL}";
		            	}else{
		            		Ext.MessageBox.show({
		            	           title: '{$LANG.login}',
		            	           msg: '{$LANG.login_fail}',
		            	           buttons: Ext.MessageBox.OK,
		            	           width:350,
		            	           icon:Ext.MessageBox.ERROR
		            	       });
		            	}
		        	},
		            failure: function(form,action){
		        		Ext.MessageBox.show({
	            	           title: '{$LANG.login}',
	            	           msg: '{$LANG.login_fail}',
	            	           buttons: Ext.MessageBox.OK,
	            	           minWidth:350,
	            	           minPromptWidth:350,
	            	           width:350,
	            	           minProgressWidth:350,
	            	           icon:Ext.MessageBox.ERROR
	            	       });
		        	}
	       		});
            } ;
	        new Ext.util.KeyNav("form1", {
		   		  'enter': function(e) {
		       		fn_submit();
		   		  },
		   		  'scope': this
	   		});
            Ext.get("login").on("click", 
            		fn_submit
            )
        });            	
        </script>
 
         
</head>

  
  <body class="login_body">



    <div id="login_wrapper">
		<div id="login_header"></div>
    	<div id="login_container">

			<span class="login_title">后台管理系统</span>
			<form name="form1" id="form1" method="post" action="{$smarty.server.PHP_SELF}" onsubmit="return false;" >
			<ul class="login_content">
				<li>{$LANG.user_logname}:<input tabindex="1" class="login_input required" type="text" name="log_name" id="log_name"/></li>
				<li>&nbsp;&nbsp;{$LANG.password}:<input tabindex="2" class="login_input required" type="password" name="log_pass" id="log_pass"/></li>
				<li><input type="submit"  tabindex="3"  value="{$LANG.login}" class="login_button" id="login" name="login"/>&nbsp;<input type="reset" class="login_button"/></li>
			</ul>

			</form>
		</div>
		<div id="login_footer">
			版权所有 &copy; 2010 Dothing
		</div>
	</div>
</body>
  
  
<!--        
<div style="margin:100 30% 100 30%;width:300px;">
<form method="post" id="form1" name="form1"  action="{$smarty.const.BAOGG_BASE_URL}system/user/login/">
	<div><label for="log_name">{$LANG.user_logname}:</label><input type="text" name="log_name" id="log_name" /></div>
	<div><label for="log_pass">{$LANG.password}:</label><input type="password" name="log_pass" id="log_pass" /></div>
	<div><input type="button" value="{$LANG.login}" id="login" name="login" />  <input type="reset" /></div>
</form>

</div>
 -->




</html>